Skip to content

fix(toc): remove horizontal overflow due Table of Contents (#23052) #23068

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

Mohit5Upadhyay
Copy link
Contributor

Description

This PR fixes the horizontal overflow issue in the Docker Docs Website due to overflow Table of Contents section, as described in #23052.

Changes made:

Updated layout structure and/or styles in:

  • layouts/partials/aside.html
  • layouts/partials/content-default.html

The fix prevents excessive width in the ToC container, which was previously causing the entire page to become horizontally scrollable on certain pages.

Update:

horizontal-overflow-remove.mp4

Related issues or tickets

Closes #23052

Reviews

  • Technical review
  • Editorial review
  • Product review

Notes for reviewers:

  • Let me know if you’d prefer a purely CSS-based solution, or if structural changes are acceptable.
  • Happy to tweak styles, breakpoints, or layout as needed!

Copy link

netlify bot commented Jul 11, 2025

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit d48826c
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6870d3e3d8d8bc000863d6c0
😎 Deploy Preview https://deploy-preview-23068--docsdocker.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added the hugo Updates related to hugo label Jul 11, 2025
@sarahsanders-docker
Copy link
Contributor

@ArthurFlag this fix seems to remove the issue, if you wanna take a look I can approve and merge

Copy link
Contributor

@ArthurFlag ArthurFlag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@sarahsanders-docker sarahsanders-docker merged commit 650936a into docker:main Jul 23, 2025
15 checks passed
@sarahsanders-docker
Copy link
Contributor

@Mohit5Upadhyay Thank you so much for submitting a PR to fix this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hugo Updates related to hugo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There exist a condition of overflow in the " Table of content " section whose width is more that's why the whole website gets horizontally scrollable.
3 participants